funtion a = bubble(a)
  N = size(a)(1);
  for i = 1:N
	    for j = N: -1:i+1
		      if a(j)< a(j-1)
		      temp = a(j)
		      a(j) = a(j-1)
		      a(j-1) = temp
end

  a = zeros(8,1);
a(1) = 2;
a(2) = 4;
a(3) = 5;
a(4) = 7;
a(5) = 1;
a(6) = 2;
a(7) = 3;
a(8) = 6;

bubble(a)
